// https://leetcode.cn/problems/sign-of-the-product-of-an-array/description/


func arraySign(nums []int) int {
    m := 0
	for _, v := range nums {
		if v < 0 {
			m += 1
		} else if v == 0 {
			return 0
		}
	}
	if m % 2 == 1 {
		return -1
	} else {
		return 1
	}
}